<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Sale_order extends Model
{
    //
    public $timestamps= true;
    protected $table = 'sale_order';
    
    protected $fillable=['out_trade_no','user_id','cafe_id','sale_id','goods_id','partner_id','address_id','amount','order_price','cover','greetingWords','chargeOffUser','chargeOffGps','chargeOffTime','status'];


    public function getSale(){
		return $this->hasOne('App\Sales','id','sale_id');
	}
}
